package com.example.fushuang.balabala.fragment;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.example.fushuang.balabala.R;
import com.umeng.analytics.MobclickAgent;

/**
 * A simple {@link Fragment} subclass.
 */
public abstract class BaseFragment extends Fragment {


    public BaseFragment() {

    }

    @Override
    public void onResume() {
        super.onResume();
        MobclickAgent.onPageStart(getFragmentTitle());
    }

    @Override
    public void onPause() {
        super.onPause();
        MobclickAgent.onPageEnd(getFragmentTitle());
    }

    public abstract String getFragmentTitle();




}
